import axios from '../../axios'

const ADMINS = '/admins';

const admins = {
    getAdmins(params) {
        return axios({
            url: ADMINS + '/getAdmins',
            method: 'get',
            params,
        })
    },
    freezeAdmins(_id) {
        return axios({
            url: ADMINS + '/freezeAdmins',
            method: 'post',
            data: { _id },
        })
    },
    exposureFreezeAdmins(_id) {
        return axios({
            url: ADMINS + '/exposureFreezeAdmins',
            method: 'post',
            data: { _id },
        })
    },
    updatePassword(params) {
        return axios({
            url: ADMINS + '/updatePassword',
            method: 'post',
            data: params,
        })
    }
}
export default admins;